package com.ruoyi.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 默认收费项(隐藏)对象 zhwy_defaultcharges
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
public class ZhwyDefaultcharges extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，自增 */
    @Excel(name = "主键，自增")
    private Long id;

    /** 收费项id，外键 */
    @Excel(name = "收费项id，外键")
    private Long chargeitemId;

    /** 类型（出租   出售 -- 数据字典） */
    @Excel(name = "类型", readConverterExp = "出=租,出=售,-=-,数=据字典")
    private Long type;
    /** 收费项目名 */
    private String name;

    /** 单价 */
    private BigDecimal univalence;

    public ZhwyDefaultcharges() {
    }

    public ZhwyDefaultcharges(Long id, Long chargeitemId, Long type) {
        this.id = id;
        this.chargeitemId = chargeitemId;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getUnivalence() {
        return univalence;
    }

    public void setUnivalence(BigDecimal univalence) {
        this.univalence = univalence;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setChargeitemId(Long chargeitemId) 
    {
        this.chargeitemId = chargeitemId;
    }

    public Long getChargeitemId() 
    {
        return chargeitemId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("chargeitemId", getChargeitemId())
            .append("type", getType())
            .toString();
    }
}
